package com.ruoyi.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TSpCountIncomeMapper;
import com.ruoyi.system.domain.TSpCountIncome;
import com.ruoyi.system.service.ITSpCountIncomeService;

/**
 * 项目收入支出按月统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-21
 */
@Service
public class TSpCountIncomeServiceImpl extends ServiceImpl<TSpCountIncomeMapper, TSpCountIncome> implements ITSpCountIncomeService
{
    @Autowired
    private TSpCountIncomeMapper tSpCountIncomeMapper;

    /**
     * 查询项目收入支出按月统计
     * 
     * @param projectId 项目收入支出按月统计主键
     * @return 项目收入支出按月统计
     */
    @Override
    public TSpCountIncome selectTSpCountIncomeByProjectId(Long projectId)
    {
        return tSpCountIncomeMapper.selectTSpCountIncomeByProjectId(projectId);
    }

    /**
     * 查询项目收入支出按月统计列表
     * 
     * @param tSpCountIncome 项目收入支出按月统计
     * @return 项目收入支出按月统计
     */
    @Override
    public List<TSpCountIncome> selectTSpCountIncomeList(TSpCountIncome tSpCountIncome)
    {
        return tSpCountIncomeMapper.selectTSpCountIncomeList(tSpCountIncome);
    }

    /**
     * 新增项目收入支出按月统计
     * 
     * @param tSpCountIncome 项目收入支出按月统计
     * @return 结果
     */
    @Override
    public int insertTSpCountIncome(TSpCountIncome tSpCountIncome)
    {
        return tSpCountIncomeMapper.insertTSpCountIncome(tSpCountIncome);
    }

    /**
     * 修改项目收入支出按月统计
     * 
     * @param tSpCountIncome 项目收入支出按月统计
     * @return 结果
     */
    @Override
    public int updateTSpCountIncome(TSpCountIncome tSpCountIncome)
    {
        return tSpCountIncomeMapper.updateTSpCountIncome(tSpCountIncome);
    }

    /**
     * 批量删除项目收入支出按月统计
     * 
     * @param projectIds 需要删除的项目收入支出按月统计主键
     * @return 结果
     */
    @Override
    public int deleteTSpCountIncomeByProjectIds(Long[] projectIds)
    {
        return tSpCountIncomeMapper.deleteTSpCountIncomeByProjectIds(projectIds);
    }

    /**
     * 删除项目收入支出按月统计信息
     * 
     * @param projectId 项目收入支出按月统计主键
     * @return 结果
     */
    @Override
    public int deleteTSpCountIncomeByProjectId(Long projectId)
    {
        return tSpCountIncomeMapper.deleteTSpCountIncomeByProjectId(projectId);
    }
}
